package com.limeng.domain;

import java.util.HashMap;
import java.util.List;

import com.limeng.dao.impl.DAOContactImpl;
import com.limeng.exceptions.DAOException;
import com.limeng.model.Contact;



public abstract class DAOContact {
  
  private static DAOContact instance;
  public abstract Contact loadContact(Long id) throws DAOException;
  public abstract String deleteContact(Contact contact) throws DAOException;
  public abstract HashMap<String,String> deleteContactList(List<Contact> contactList);
  public abstract Contact saveContact(Contact contact) throws DAOException;
  public abstract String updateContact(Contact contact);
  public abstract List<Contact> getAllContact();
  

  
  public static DAOContact getInstance()
  {
	if(instance==null)
	{
		instance=new DAOContactImpl();
	}
	return instance;
  }
	  

}
